object Yield {
  def main(args: Array[String]): Unit = {

    val arr = Array(1, 2, 3, 4, 5, 6, 7, 8, 9)
    //将数组的奇数项取出乘以5后再生成一个新的数组

    val s = for (a <- arr if a % 2 == 1) yield a * 5

    println(s.toBuffer)
    val t1 = new Tuple3("hadoop", 3.14, 100);
    println(t1._2)
  }
}
